package com.objects;

import java.io.Serializable;

public class VaultFile implements Comparable<VaultFile>, Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String name, size, date;
	private boolean isSelected = false;
	private String viewUrl;

	public boolean isSelected() {
		return isSelected;

	}

	public void setSelected(boolean isSelected) {
		this.isSelected = isSelected;
	}

	@Override
	public String toString() {
		return "ValutCatelogResponse [FileName=" + name + ", FileSize=" + size
				+ ", FileDate=" + date + ", isSelected=" + isSelected + "]";
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getSize() {
		return size;
	}

	public void setSize(String size) {
		this.size = size;
	}

	public String getDate() {
		return date;
	}

	public void setDate(String date) {
		this.date = date;
	}

	@Override
	public int compareTo(VaultFile another) {
		try {
			return name.compareTo(another.getName());
		} catch (Exception e) {
			e.printStackTrace();
		}
		return 0;
	}

	public String getViewUrl() {
		return viewUrl;
	}

	public void setViewUrl(String viewUrl) {
		this.viewUrl = viewUrl;
	}

}
